package com.cjyd.hrjb;

import cn.hutool.cron.CronUtil;
import com.cjyd.hrjb.event.ApplicationCloseListener;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
public class HrjbApplication {

    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(HrjbApplication.class);
        application.addListeners(new ApplicationCloseListener());
        application.run(args);
        // 启动定时任务
        CronUtil.start();
//        SpringApplication.run(HrjbApplication.class, args);
    }

}
